<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        alert(`注册账号`)
        let admin = prompt(`请输入用户名`)
        let password = prompt(`请输入密码`)
        let admin1
        let password1
        alert(`注册成功`)
        alert(`您已经进入登录页面`)
        while (true) {
            admin1 = prompt(`请输入用户名`)
            password1 = prompt(`请输入密码`)
            if (admin !== admin1 || password !== password1) {
                alert(`您输入的账号或密码有误，请重新输入`)
            }
            else {
                alert(`恭喜您登陆成功`)

                break
            }
        }

        document.write(`欢迎来到大傻子平台`)
    </script>
</body>

</html>